package com.graduation.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.graduation.common.domain.dto.PageDTO;
import com.graduation.pojo.po.Comment;
import com.graduation.pojo.query.CommentQuery;
import com.graduation.pojo.query.FrontCommentQuery;
import com.graduation.pojo.vo.CommentVO;
import com.graduation.pojo.vo.FrontCommentVO;

public interface CommentService extends IService<Comment> {

    PageDTO<CommentVO> pageComments(CommentQuery query);

    void saveComment(Comment comment);

    void deleteComment(Long id);

    CommentVO getByCommentId(Long id);

    /**
     * 前台分页查询评论
     */
    PageDTO<FrontCommentVO> pageFrontComments(FrontCommentQuery query);
}
